import http from '../utils/request'
const CommonAPI = {

	/**用户列表 */
	userList: (data) => {
		return http.request({
			url: '/restaurant/common/user-list',
			method: 'GET',
			data
		})
	},


	userListByBooker: (data) => {
		return http.request({
			url: '/restaurant/common/userListByBooker',
			method: 'GET',
			data
		})
	},

	userListByStand: (data) => {
		return http.request({
			url: '/restaurant/common/userListByStand',
			method: 'GET',
			data
		})
	},

	/**
	 * 参与考勤用户列表
	 * @param data
	 * @returns {Promise | Promise<unknown>}
	 */
	userAttendance: (data) => {
		return http.request({
			url: '/restaurant/common/userAttendance',
			method: 'GET',
			data
		})
	},

}
export default CommonAPI